//package com.example.androidlearing2423.ui.theme.act.ui.theme.ui
//
//import android.os.Bundle
//import androidx.activity.ComponentActivity
//import androidx.activity.compose.setContent
//import androidx.activity.enableEdgeToEdge
//import androidx.compose.foundation.layout.fillMaxSize
//import androidx.compose.foundation.layout.padding
//import androidx.compose.material3.MaterialTheme
//import androidx.compose.material3.Scaffold
//import androidx.compose.material3.Surface
//import androidx.compose.material3.Text
//import androidx.compose.runtime.Composable
//import androidx.compose.ui.Modifier
//import androidx.compose.ui.tooling.preview.Preview
//import com.example.androidlearing2423.kotlin.BusinessCardScreen
//import com.example.androidlearing2423.ui.theme.act.ui.theme.ui.ui.theme.AndroidLearing2423Theme
//import androidx.compose.foundation.layout.fillMaxSize
//import androidx.compose.foundation.layout.wrapContentSize
//import androidx.compose.ui.Alignment
//import androidx.compose.foundation.layout.Column
//import androidx.compose.material3.Button
//import androidx.compose.ui.res.stringResource
//import androidx.compose.foundation.Image
//import androidx.compose.foundation.layout.Arrangement
//import androidx.compose.ui.res.painterResource
//import androidx.compose.foundation.layout.height
//import androidx.compose.foundation.layout.Spacer
//import androidx.compose.foundation.shape.RoundedCornerShape
//import androidx.compose.ui.unit.dp
//import androidx.compose.runtime.mutableStateOf
//import androidx.compose.runtime.remember
//import androidx.compose.runtime.getValue
//import androidx.compose.runtime.setValue
//import androidx.compose.ui.res.painterResource
//import androidx.compose.ui.res.stringResource
//import com.example.androidlearing2423.R
//
//class MainActivity : ComponentActivity() {
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        setContent {
//           AndroidLearing2423Theme {
//                DiceRollerApp()
//            }
//        }
//    }
//}
//
//@Preview
//@Composable
//fun DiceRollerApp() {
//    DiceWithButtonAndImage()
//}
//
//@Composable
//fun DiceWithButtonAndImage(modifier: Modifier = Modifier) {
//    var result by remember { mutableStateOf(1) }
//    val imageResource = when (result) {
//        1 -> R.drawable.dice_1
//        2 -> R.drawable.dice_2
//        3 -> R.drawable.dice_3
//        4 -> R.drawable.dice_4
//        5 -> R.drawable.dice_5
//        else -> R.drawable.dice_6
//    }
//    Image(
//        painter = painterResource(imageResource),
//        contentDescription = result.toString()
//
//    )
//    Column(
//        modifier = modifier.fillMaxSize(),
//        horizontalAlignment = Alignment.CenterHorizontally,
//        verticalArrangement = Arrangement.Center
//    ) {
//        Image(
//            painter = painterResource,
//            contentDescription = "1"
//        )
//        Spacer(modifier = Modifier.height(16.dp))
//        Button(onClick = { result = (1..6).random() }) {
//            Text(stringResource(R.string.roll))
//        }
//    }
//}
